//
//  XkxSportViewController.m
//  侠客行
//
//  Created by laibingqiang on 16/11/8.
//  Copyright © 2016年 laibingqiang. All rights reserved.
//

#import "XkxSportViewController.h"
#import "XkxSportMapController.h"
@interface XkxSportViewController ()

@end

@implementation XkxSportViewController

- (void)viewDidLoad {
    [super viewDidLoad];

    self.view.backgroundColor = [UIColor redColor];
    [self setupMapVC];
}

- (void)setupMapVC
{
    XkxSportMapController *mapVC = [[XkxSportMapController alloc] init];
    
    mapVC.sportModel = [[SportsModel alloc] initWithType:self.type];
    [self addChildViewController:mapVC];
    
    [self.view addSubview:mapVC.view];
    
    [mapVC didMoveToParentViewController:self];
}

//- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
//{
//    
//    [self dismissViewControllerAnimated:YES completion:nil];
//}

@end
